<script lang="ts" setup>
import { reactive } from 'vue'
const formList = reactive<FormList>([
  {
    label: '年月日时间',
    prop: 'datetime',
    type: 'datetime',
    defaultTime: new Date(1994, 1, 1, 12, 12, 12),
    short: true,
    format: 'YYYY/MM/DD HH/mm/ss',
    valueFormat: 'YYYY/MM/DD HH:mm:ss'
  }
])
const submitForm = (formData: any) => {
  console.log(formData)
}
</script>
<template>
  <XyAddForm isCard :formList="formList" @submit-form="submitForm" />
</template>
